package com.ld.control.business.process.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ld.control.business.process.model.ProcessExampleModel;
import com.ld.control.business.process.vo.resp.ProcessExampleRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 任务流程实例 Mapper 接口
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-21
 */
public interface ProcessExampleMapper extends BaseMapper<ProcessExampleModel> {

    /**
     * 根据任务实例id和流程类型查询列表实例列表
     * @param taskExampleId
     * @param type
     * @return
     */
    List<ProcessExampleRespVo> selectListByTaskExampleIdAndType(@Param("taskExampleId") Long taskExampleId, @Param("type") Integer type, @Param("status") Integer status);

    /**
     * 获取某个子实验下面所有流程
     * @param subTaskExampleId
     * @return
     */
    List<ProcessExampleRespVo> selectListBySubTaskExampleId(@Param("subTaskExampleId") Long subTaskExampleId);

}
